package com.changan.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author NieChangan
 * @since 2022-08-30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("biz_in_stock_info")
@ApiModel(value = "InStockInfo对象", description = "")
public class InStockInfo extends Model<InStockInfo> {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("入库单编号")
    @TableField("in_num")
    private String inNum;

    @ApiModelProperty("商品编号")
    @TableField("p_num")
    private String pNum;

    @ApiModelProperty("数量")
    @TableField("product_number")
    private Integer productNumber;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField("modified_time")
    private Date modifiedTime;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
